import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.Random;


public class Catchs {
	public static void main(String[] args) {
		RandomAccessFile file;
		try{
			file = new RandomAccessFile("a.txt", "r");
			for (int i = 0;i < 20;i++)
				System.out.println((char)file.readByte());
			file.close();
		}catch (FileNotFoundException e1){
			System.out.println("1");
		}catch (IOException e2) {
			System.out.println('2');
		}
		System.out.println("3");
	}

}
